Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
if (!(Get-Command "choco" -errorAction SilentlyContinue)) {
    iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
}
if (!(Get-Command "git" -errorAction SilentlyContinue)) {
    choco install -y git
}
if (!(Get-Command "python" -errorAction SilentlyContinue)) {
    choco install -y python
}
if (!(Test-Path -Path "$HOME\downloads\dotfiles")) {
    git clone "https://gitverse.ru/sc/pavel-belikov/dotfiles.git" "$HOME\downloads\dotfiles"
}
cd "$HOME\downloads\dotfiles"
git pull
python ./install.py -i
